package cn.yunhe.service.serviceImpl;

import cn.yunhe.dao.DepartmentDao;
import cn.yunhe.entity.Department;
import cn.yunhe.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("departmentService")
public class DepartmentServiceImpl implements DepartmentService {
    @Autowired
    @Qualifier("departmentDao")
    private DepartmentDao departmentDao;
    @Override
    public List<Department> selectAllDep() {
        return  departmentDao.selectAllDep();
    }
}
